package com.citrus.demo.services.Impl;

import com.citrus.demo.bean.CitrusDisease;
import com.citrus.demo.mapper.CitrusDiseaseMapper;
import com.citrus.demo.services.CitrusDiseaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CitrusDiseaseServiceImpl implements CitrusDiseaseService {

    @Autowired
    private CitrusDiseaseMapper citrusDiseaseMapper;

    @Override
    public void addCitrusDisease(CitrusDisease citrusDisease) {
        citrusDiseaseMapper.addCitrusDisease(citrusDisease);
    }

    @Override
    public List<CitrusDisease> findCitrusDiseaseAll() {
        return citrusDiseaseMapper.findCitrusDiseaseAll();
    }
}
